import request from "../request";
import type { ApiResponse } from "../request";
interface UpdateSessionNameRequestResponse {
  id: string;
  sessionName: string;
  updateTime: string;
}
export const updateSessionName = async (
  sessionId: string,
  sessionName: string
): Promise<ApiResponse<UpdateSessionNameRequestResponse>> => {
  return await request.put("/ai/session", {
    id: sessionId,
    sessionName,
  });
};
